<template>
<div id="">
  生命周期看控制台
</div>
</template>
<script>
export default {
  beforeCreate() {
    console.log('beforeCreate 创建之前')
  },
  created() {
    console.log('created 创建之后')
  },
  beforeMount() {
    console.log('beforeMount 挂载之前')
  },
  mounted() {
    console.log('mounted 挂载之后')
  },
  beforeUpdate() {
    console.log('beforeUpdate 数据更新之前')
  },
  updated() {
    console.log('updated 数据更新之后')
  },
  beforeDestroy() {
    console.log('beforeDestroy 销毁之前')
  },
  destroyed() {
    console.log('destroyed 销毁之后')
  }
}
</script>
<style scoped>
</style>
